import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';

export default async function a004(fd: IFeidaoAiBrowserComponent) {
	// todo
	const leixing1=fd.data.node.querySelector<HTMLSelectElement>('[data-id="leixing"]');
	const leixing=leixing1.value;
	// 修改选项
	const xuanxiangA=fd.data.node.querySelector<HTMLInputElement>('[data-id="xuanxiangA"]');
	const xuanxiangB=fd.data.node.querySelector<HTMLInputElement>('[data-id="xuanxiangB"]');
	const xuanxiangC=fd.data.node.querySelector<HTMLInputElement>('[data-id="xuanxiangC"]');
	const xuanxiangD=fd.data.node.querySelector<HTMLInputElement>('[data-id="xuanxiangD"]');
	if (leixing === "多选题") {
		xuanxiangA.type = "checkbox";
		xuanxiangB.type = "checkbox";
		xuanxiangC.type = "checkbox";
		xuanxiangD.type = "checkbox";

	} else {
		xuanxiangA.type = "radio";
		xuanxiangB.type = "radio";
		xuanxiangC.type = "radio";
		xuanxiangD.type = "radio";

	}
}
